package com.deng.api.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 人事变更表
 * </p>
 *
 * @author deng
 * @since 2022-08-10
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("cloud_change_log")
@ApiModel(value = "CloudChangeLog对象", description = "人事变更表")
public class CloudChangeLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("投递简历人员id")
    private Integer recruitId;

    @ApiModelProperty("进展状态")
    private Integer progressState;

    @ApiModelProperty("变更前人事专员的id")
    private Integer oldUserId;

    @ApiModelProperty("变更前人事专员的名称")
    private String oldUserName;

    @ApiModelProperty("变更后人事专员的id")
    private Integer newUserId;

    @ApiModelProperty("变更后人事专员的名称")
    private String newUserName;

    @ApiModelProperty("操作人的id")
    private Integer operatorId;

    @ApiModelProperty("操作人的名称")
    private String operator;

    @ApiModelProperty("变更原因")
    private String reason;

    @ApiModelProperty("变更时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("版本号")
    @Version
    private Integer version;

    @ApiModelProperty("是否删除")
    @TableLogic
    private Boolean deleted;


}
